<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    android:title="设置" >

    <PreferenceCategory android:title="服务器配置" >
        <EditTextPreference
            android:defaultValue="192.168.76.1"
            android:key="@string/preferences_connection_server_ip"
            android:negativeButtonText="取消"
            android:positiveButtonText="确定"
            android:title="服务器地址" />
        <EditTextPreference
            android:defaultValue="8012"
            android:key="@string/preferences_connection_port"
            android:negativeButtonText="取消"
            android:positiveButtonText="确定"
            android:title="服务器端口" />
    </PreferenceCategory>
    <PreferenceCategory android:title="Zigbee串口配置" >
        <ListPreference
            android:key="@string/preferences_serialport_device"
            android:persistent="true"
            android:title="设备" >
        </ListPreference>
        <ListPreference
            android:entries="@array/baudrates_name"
            android:entryValues="@array/baudrates_value"
            android:key="@string/preferences_serialport_baud_rate"
            android:persistent="true"
            android:title="波特率" >
        </ListPreference>
    </PreferenceCategory>
    <PreferenceCategory android:title="其他" >
        <CheckBoxPreference
            android:defaultValue="true"
            android:key="@string/preferences_exit_confirm"
            android:summaryOff="不确认"
            android:summaryOn="确认(防止误按退出程序)"
            android:title="退出确认?" >
        </CheckBoxPreference>
    </PreferenceCategory>

</PreferenceScreen>